package cn.tedu.boottext43.mapper;

import cn.tedu.boottext43.vo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select password from user where username=#{username}")
    User selectByUsername(String username);

    @Insert("insert into user values(null,#username,#password,#nick)")
    void reg(User user);


}
